package com.seanliao.nav.common.domain.vo;

import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * 角色VO
 *
 * @author Sean_Liao
 */
@Data
//@Accessors(chain = true)
@JsonInclude(JsonInclude.Include.NON_NULL)
public class RoleVO implements Comparable<RoleVO> {

    /* 角色id */
    private Long id;

    /* 角色名称 */
    private String name;

    /* 角色代码 */
    private String code;

    /* 描述 */
    private String description;

    /* 是否禁用 */
    private Boolean isBan;

    /* 排序 */
    private Integer sort;

    /* 创建时间 */
    private LocalDateTime createdTime;

    @Override
    public int compareTo(RoleVO o) {
        return this.getSort() - o.getSort();
    }
}
